package reflecttest;

import sun.misc.Launcher;

import java.lang.reflect.Array;
import java.net.URL;

public class BootstrapTest {
    public static void main(String[] args){
        //获取根类加载器所加载的全部URL数组
        URL[] urls = Launcher.getBootstrapClassPath().getURLs();
        for (URL url:urls) {
            System.out.println(url.toExternalForm());
        }

        System.out.println(BootstrapTest.class.getName());
        System.out.println(BootstrapTest.class.getSimpleName());

        System.out.println(System.getProperty("sun.boot.class.path"));
        System.out.println(System.getProperty("file.separator"));
        System.out.println(System.getProperty("path.separator"));
        System.out.println(System.getProperty("java.ext.dirs"));
        System.out.println(System.getProperty("java.class.path"));
        System.out.println("-----------------------------------------");
        System.out.println(BootstrapTest.class.getClassLoader());
        System.out.println(BootstrapTest.class.getClassLoader().getParent());
        System.out.println(String.class.getClassLoader());
    }
}
